package com.gs.gaosheng.controller;

import com.gs.common.annotation.Log;
import com.gs.common.core.controller.BaseController;
import com.gs.common.core.domain.AjaxResult;
import com.gs.common.core.page.TableDataInfo;
import com.gs.common.enums.BusinessType;
import com.gs.common.utils.poi.ExcelUtil;
import com.gs.gaosheng.domain.GsCouponUser;
import com.gs.gaosheng.service.GsCouponUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 优惠券和用户关联表Controller
 *
 * @author yy
 * @date 2023-08-03
 */
@RestController
@RequestMapping("/gaosheng/couponuser")
public class GsCouponUserWebController extends BaseController
{
    @Autowired
    private GsCouponUserService gsCouponUserService;



    /**
     * 新增优惠券和用户关联表
     */
    @PostMapping("/feign/add")
    public AjaxResult add(@RequestBody GsCouponUser gsCouponUser)
    {
        return toAjax(gsCouponUserService.insertGsCouponUser(gsCouponUser));
    }


}
